#!/usr/bin/php
<?PHP

printf("please input ch: ");
fscanf(STDIN, "%d", $a);
printf("a = %d\n", $a);
// echo fgets(STDIN), PHP_EOL;
// echo fread(STDIN, 10), PHP_EOL;

$a = (10 > 20);
$a = 12354.67356;

// print "hello\n";
echo "hello ", $a, " world", " kyo", PHP_EOL;
// printf("hello %d world kyo!\n", $a);
printf("hello %-10.2f world kyo!\n", $a);
$a = 54;
printf("a = %d, %x, %o %b\n", 100, 100, 100, 100);
printf("hello %-10d world kyo!\n", $a);
printf("hello %010d world kyo!\n", $a);

fwrite(STDERR, "fwrite hello world!\n");

// $a = array(11, 22);
// print_r($a);
// var_dump($a, $a);
